package cn.bitkit.component.context;

import org.slf4j.MDC;

import java.lang.ScopedValue;

/**
 * 追踪号
 */
public class TraceContext {

    public static final ScopedValue<String> TRACE_ID = ScopedValue.newInstance();
    public static String getTrace() {
        return MDC.get("traceId");
    }

}
